 #include <wx/wx.h>
 #include <wx/icon.h>
 #include <wx/font.h>
 #include <wx/numdlg.h>
 #include <wx/string.h>
 #include <wx/event.h>
 #include <wx/textctrl.h>
 #include <wx/wfstream.h>
 #include <wx/datstrm.h>
 #include <wx/txtstrm.h>
 #include <wx/access.h>
 #include <wx/window.h>
 #include <wx/treectrl.h>
 #include <wx/spinctrl.h>
 #include <wx/collpane.h>
 #include <wx/stdpaths.h>
 #include <wx/datetime.h>
 #include <wx/graphics.h>
 #include "main.h"
 #include "mycanvas.h"

 BEGIN_EVENT_TABLE(MyCanvas, wxWindow)
 	EVT_PAINT(MyCanvas::OnPaint)			//to can paint in window
 	EVT_SIZE(MyCanvas::OnMaximize)			//answer to size changes (p.ej. maximize events)
 END_EVENT_TABLE()

 const int BMPW = 3000;	//auxvars
 const int BMPH = 2000;	//auxvars

 MyCanvas::MyCanvas(SampleApp * AApp, wxWindow *parent, wxWindowID id, const wxPoint&
  pos /*= wxDefaultPosition*/, const wxSize& size /*= wxDefaultSize*/, long style /*= 0*/)
 :wxWindow(parent,id,pos,size,style),
 m_pixels(BMPW,BMPH,-1)
 {
     App = AApp;
 }

 /***************************************************************/
 /**************	OnMaximize	************************************/
 /************** answer to Size changes	************************/
 /************** Used to resize all elements	********************/
 /***************************************************************/
 void MyCanvas::OnMaximize(wxSizeEvent& WXUNUSED(event))
 {
 }

 /***************************************************************/
 /**************	OnPaint	****************************************/
 /************** answer to paint events *************************/
 /************** Prepares the window to paint it ****************/
 /***************************************************************/
 void MyCanvas::OnPaint(wxPaintEvent& WXUNUSED(event))
 {
 }

 /***************************************************************/
 /**************	drawSomething	********************************/
 /************** Paint the canvas	****************************/
 /***************************************************************/
 void MyCanvas::drawSomething()
 {
 }
